jQuery(document).ready(function(){	
	$ = jQuery;
	/**
	 * The menu
	 */
	$.each($('.menu ul'),function(k,v){
		parent = $('#'+$(this).parent('li').attr('id'));
		if(!parent.hasClass('hasSubNav'))
		{
			parent.addClass('hasSubNav hasArrow');
			parent.html('<span class="arrow"></span>'+parent.html());
		}
	});
	/**
	 * Back to Top!
	 */
	$('.backToTop').live('click',function(e){
		$('html,body').animate({scrollTop:0});
	});
});